package com.xianyun.site.support.convertor;

import com.xianyun.site.support.domain.model.ReceiveMessage;
import com.xianyun.site.support.dto.ReceiveCmd;
import org.springframework.beans.BeanUtils;

/**
 * @author macos-zyj
 */
public class ReceiveConvertor {
    public static ReceiveMessage toEntity(ReceiveCmd message){
        ReceiveMessage receiveMessage = new ReceiveMessage();
        BeanUtils.copyProperties(message, receiveMessage);
        return receiveMessage;
    }
}
